
//都放宽条件
const cardReg=/(^\d{15}$)|(^\d{17}[0-9X])$/;
const phoneReg=/^1\d{10}$/
const yzmReg = /^\d{4,6}$/


const checkUtil={
    isCardValid(cardNo){
        return cardReg.test(cardNo);
    },
    isPhoneValid(phone){
        return phoneReg.test(phone)
    },
    isYzmValid(yzm){
        return yzmReg.test(yzm)
    }
}
export default checkUtil